DEBUG = True
# redis配置，网关限流使用，不配置不生效
REDIS_HOST = '127.0.0.1'
REDIS_PASSWORD = 'redis_password'
REDIS_PORT = 6379
REDIS_DB = 1

# 缓存redis配置
CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://%s:%s/%s" % (REDIS_HOST, REDIS_PORT, REDIS_DB),
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
            'PASSWORD': REDIS_PASSWORD,
        }
    }
}